import { request } from "@/utils/http";

// 登录
export const requestLogin = (loginData) => {
  return request.post("/api/user/passport/login", loginData);
};

// 获取用户信息(登录状态)
export const requestUserInfo = () => {
  return request.get("/api/user/passport/auth/getUserInfo");
};

// 注销
export const requestLogout = () => {
  return request.get("/api/user/passport/logout");
};
